<script setup>
import config from '@/config'
import { useStore } from 'vuex'
const store = useStore()
const  url = config.nuxt2 + '/main/childHome' 

function handleDataChange(e){
   let { activeIndex } = e.detail.data
   localStorage.setItem('activeIndex',activeIndex)
   store.commit('setActiveIndex', activeIndex);
   debugger
}
</script>

<template>
  <div>
  <micro-app keep-alive @datachange="handleDataChange" name="childHome" :url="url" ssr></micro-app>
  </div>
</template>

<style>
</style>